import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Poet {
  @PrimaryGeneratedColumn('uuid')
  id: number;

  @Column({ default: '' })
  title: string;

  @Column({ default: '杨万里' })
  author: string;

  @Column({ default: '唐' })
  dynasty: string;

  @Column({ default: '' })
  mainPoet: string;

  @Column({ default: '', length: 4096 })
  sourceMessage: string;
}
